package com.atbun.eduservice.client;

import com.atbun.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 远程调用vod服务的接口
 */
@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {

//    远程调用vod服务的删除视频方法
    @DeleteMapping("/eduvod/video/deleteVideo/{videoId}")
    public R deleteVideo(@PathVariable("videoId") String videoId);

    //删除多个视频
    @DeleteMapping("deleteVideoList")
    public R deleteVideoList(@RequestParam("videoIdList") List<String> videoIdList);

}
